﻿<%@ Page Language="C#" MasterPageFile="~/MasterPageSERIX.Master" AutoEventWireup="true"
    CodeBehind="Questoes.aspx.cs" Inherits="SERIX.Questoes" Title="Questões" %>

<%@ Register Src="Controles/Navegador.ascx" TagName="Navegador" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table width="97%" border="0" cellspacing="0" cellpadding="2" align="center">
        <tr>
            <td class="secao_titulo" style="width: 284px">
                Questões<hr class="linhaHorizontal" style="width: 740px" />
            </td>
        </tr>
    </table>
    <table align="center" border="0" cellpadding="2" cellspacing="0" width="97%">
        <tr>
            <td align="center" class="grid_mestre" id="tdMestre" runat="server">
                <table width="100%">
                    <tr>
                        <td style="text-align: right; width: 50%">
                            Tipo de Ficha Cadastral:
                        </td>
                        <td style="text-align: left; width: 50%">
                            <asp:Label ID="lbMestreQuest" runat="server" Text="Ficha Cadastral 1"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; width: 50%">
                            Categoria:
                        </td>
                        <td style="text-align: left; width: 50%">
                            <asp:Label ID="lbMestreCategoria" runat="server" Text="Categoria 1"></asp:Label>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="left" class="barra" style="height: 16px;">
                <asp:Button ID="btnNovo" runat="server" Font-Bold="True" OnClick="btnNovo_Click"
                    TabIndex="1" Text="Novo" UseSubmitBehavior="False" Width="78px" />
            </td>
        </tr>
        <tr>
            <td align="center" class="grid_titulo">
                Descrição<span style="color: #FFFFFF">: </span>
                <asp:TextBox ID="txtFiltrar" runat="server" MaxLength="55" TabIndex="2" Width="127px"></asp:TextBox>
                &nbsp;<asp:Button ID="btnPequisar" runat="server" Font-Bold="True" OnClick="btnPequisar_Click"
                    TabIndex="5" Text="Pesquisar" Width="80px" />
                &#160;&#160;<asp:Button ID="btnTodos" runat="server" Font-Bold="True" OnClick="btnTodos_Click"
                    TabIndex="6" Text="Todos" UseSubmitBehavior="False" Width="80px" />
            </td>
        </tr>
        <tr>
            <td align="left" style="color: #000000">
                <asp:Label ID="lblFiltro" runat="server" CssClass="filtro" TabIndex="-1" Text="Filtro: "></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="center" style="color: #000000">
                <asp:GridView ID="gridView" runat="server" AutoGenerateColumns="False" CssClass="grid"
                    OnRowDataBound="gridView_RowDataBound" PageSize="5" EmptyDataText="Nenhuma registro encontrado."
                    OnRowCommand="gridView_RowCommand">
                    <Columns>
                        <asp:BoundField DataField="IDT_TIQ" HeaderText="Identificador do tipo de questionario"
                            SortExpression="IDT_TIQ" Visible="False" />
                        <asp:BoundField DataField="IDT_CAT" HeaderText="Identificador da categoria do tipo de questionario"
                            SortExpression="IDT_CAT" Visible="False" />
                        <asp:BoundField DataField="IDT_QUE" HeaderText="Identificador da questao" SortExpression="IDT_QUE"
                            Visible="False" />
                        <asp:BoundField DataField="ORDEM" HeaderText="Ordem" SortExpression="ORDEM" ItemStyle-Width="70px"
                            ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>

                            <ItemStyle Width="70px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="DSC_QUE" HeaderText="Descrição" SortExpression="DSC_QUE"
                            ItemStyle-Width="520px">
                            <ItemStyle Width="520px"></ItemStyle>
                        </asp:BoundField>
                         <asp:BoundField DataField="TPO_QUE" HeaderText="Tipo" SortExpression="TPO_QUE"
                            ItemStyle-Width="100px">
<ItemStyle Width="100px"></ItemStyle>
                        </asp:BoundField>
                        <asp:TemplateField FooterText="" HeaderText="" ItemStyle-Width="80px" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:ImageButton ToolTip="Alterar Ordem: Subir" ID="ImageButton1" runat="server" CommandName="ordem" ImageUrl="Imagens/botoes/up.png" AlternateText="up" />
                                <asp:ImageButton ToolTip="Alterar Ordem: Descer" ID="ImageButton2" runat="server" CommandArgument="D" CommandName="ordem" ImageUrl="Imagens/botoes/down.png" AlternateText="down" />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="80px"></ItemStyle>
                        </asp:TemplateField>
                        <asp:TemplateField FooterText="Detalhes" HeaderText="Detalhes" ItemStyle-Width="70px">
                            <ItemTemplate>
                                <asp:HyperLink ID="Detalhes_HyperLink" runat="server" ImageUrl="Imagens/botoes/Detail.png">Detalhes</asp:HyperLink>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField FooterText="Editar" HeaderText="Editar" ItemStyle-Width="70px">
                            <ItemTemplate>
                                <asp:HyperLink ID="Editar_HyperLink" runat="server" ImageUrl="Imagens/botoes/Edit.png">Editar</asp:HyperLink>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField FooterText="Excluir" HeaderText="Excluir" 
                            ItemStyle-Width="70px" Visible="False">
                            <ItemTemplate>
                                <asp:HyperLink ID="Excluir_HyperLink" runat="server" ImageUrl="Imagens/botoes/Delete.png">Excluir</asp:HyperLink>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Opções">
                            <ItemTemplate>
                                <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" Height="17px"
                                    OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" Width="141px">
                                    <asp:ListItem Selected="True" Value="  ">
                                    </asp:ListItem>
                                    <asp:ListItem>Opções</asp:ListItem>
                                </asp:DropDownList>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <AlternatingRowStyle CssClass="row_alter" />
                    <EmptyDataRowStyle CssClass="emptyrow" />
                    <FooterStyle CssClass="footer" />
                    <HeaderStyle CssClass="header" />
                    <PagerStyle CssClass="pager" />
                    <RowStyle CssClass="row" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td align="center" style="color: #000000">
                <uc1:Navegador ID="Navegador1" runat="server" />
            </td>
        </tr>
        <tr>
            <td align="center" style="color: #000000">
                &nbsp;
            </td>
        </tr>
    </table>
</asp:Content>
